-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve validations & bindings #129
Conversation
@icebob nice work! A couple of quick questions if I may?
I also noticed that the 'fields' array has changed substantially from the version on npm. I found out because I opened the examples. Is there another way to get to know this (besides looking at the code directly?) Thanks in advance. I realise that my questions are actually more generic and not specific to this repo... |
@pimhooghiemstra I made a new build, so dist files contains modifications from this PR. So you can try this version in your project if you change the version of vfg in
So Yes, fields list changed, separated to two group (core, optional), removed deprecated fields and dist files renamed. They are a break changes, but we are in beta state, so we don't increment the mayor version. If we release the first stable v2 version, we will follow semver versioning again. |
Great! Just installed vfg from git instead of npm, did know that it was possible, not yet how to do it, thanks! I'll check changelog when the new beta version comes out, definitely! |
Only use this install method for testing, prototyping because it is always download the latest committed files, which can be unstable too. |
I understand, appreciate the warning! I'll wait for the 2.0.0 release for production anyways ;-) |
Concerned issues: #128 #109
validated
event, if validation executed. Event parameters:isValid: boolean, errors: Array
Example:
Fields validation
schema.errors
issue is fixed. Nowerrors
in the local data. The communication with parent is event-based (similar@validated
solution)Fix
this
in schema functions. Nowthis
is always the instance of vfg. Parameters:model, fieldSchema, vfg